package com.runa.protocol.dto;

import com.runa.protocol.enums.S7Enum;

public class S7ParamItem {

    private byte specType = 0x12;

    private byte syntaxId = 0x10;

    private S7Enum.Variable variable;

    private int operateLen;

    private int dbNumber;

    private S7Enum.Area area;

    private int byteAddr;

    private int bitAddr;

    public S7ParamItem(S7Enum.Variable variable, int operateLen, int dbNumber, S7Enum.Area area, int byteAddr, int bitAddr) {
        this.variable = variable;
        this.operateLen = operateLen;
        this.dbNumber = dbNumber;
        this.area = area;
        this.byteAddr = byteAddr;
        this.bitAddr = bitAddr;
    }

    public byte getSpecType() {
        return specType;
    }

    public void setSpecType(byte specType) {
        this.specType = specType;
    }

    public byte getSyntaxId() {
        return syntaxId;
    }

    public void setSyntaxId(byte syntaxId) {
        this.syntaxId = syntaxId;
    }

    public S7Enum.Variable getVariable() {
        return variable;
    }

    public void setVariable(S7Enum.Variable variable) {
        this.variable = variable;
    }

    public int getOperateLen() {
        return operateLen;
    }

    public void setOperateLen(int operateLen) {
        this.operateLen = operateLen;
    }

    public int getDbNumber() {
        return dbNumber;
    }

    public void setDbNumber(int dbNumber) {
        this.dbNumber = dbNumber;
    }

    public S7Enum.Area getArea() {
        return area;
    }

    public void setArea(S7Enum.Area area) {
        this.area = area;
    }

    public int getByteAddr() {
        return byteAddr;
    }

    public void setByteAddr(int byteAddr) {
        this.byteAddr = byteAddr;
    }

    public int getBitAddr() {
        return bitAddr;
    }

    public void setBitAddr(int bitAddr) {
        this.bitAddr = bitAddr;
    }

}
